package cn.shop.transcation.rechargerecord.entity;

import cn.shop.transcation.common.entity.BaseEntity;
import cn.shop.utils.enums.TransactionState;
import com.baomidou.mybatisplus.annotation.SqlCondition;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import java.math.BigDecimal;



/**
 * @author : 李一涵
 * @date : Created in 2021-11-8 13:36
 * @description : 充值记录
 */
@Data
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
public class Record extends BaseEntity {

	/**
	 * 类型：0-玩家，1-商户
	 */
	private Integer type;

	/**
	 * 玩家id
	 */
	private Long playerId;

	/**
	 * 充值金额
	 */
	private BigDecimal amount;

	/**
	 * 实际到账金额
	 */
	private BigDecimal actualAmount;

	/**
	 * 充值后余额
	 */
	private BigDecimal balance;

	/**
	 * ip
	 */
	private String ip;

	/**
	 * 状态
	 */
	private TransactionState state;

	/**
	 * 充值渠道
	 */
	private String channel;

	private Long channelId;

	/**
	 * 玩家名称
	 */
	@TableField(condition = SqlCondition.LIKE)
	private String playerName;


}
